From: Keir Fraser Date: Tue, 23 Jun 2009 10:26:22 +0000 (+0100) Subject: VT-d: correct kill hvm_timer X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13711 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=9712f3511823176370ef88a5c0a6c8fdbbf45c36;p=xen.git VT-d: correct kill hvm_timer hvm_timer is created with the vector got from domain_irq_to_vector(), accordingly it should use the same vector to kill the timer. The patch corrects it in pci_clean_dpci_irqs(). Signed-off-by: Weidong Han --- diff --git a/xen/drivers/passthrough/pci.c b/xen/drivers/passthrough/pci.c index 867b6b0322..8c1653ffaa 100644 --- a/xen/drivers/passthrough/pci.c +++ b/xen/drivers/passthrough/pci.c @@ -216,7 +216,7 @@ static void pci_clean_dpci_irqs(struct domain *d) i = find_next_bit(hvm_irq_dpci->mapping, d->nr_pirqs, i + 1) ) { pirq_guest_unbind(d, i); - kill_timer(&hvm_irq_dpci->hvm_timer[irq_to_vector(i)]); + kill_timer(&hvm_irq_dpci->hvm_timer[domain_irq_to_vector(d, i)]); list_for_each_safe ( digl_list, tmp, &hvm_irq_dpci->mirq[i].digl_list )